<?php /* Smarty version 2.6.18, created on 2012-02-15 02:06:55
         compiled from index/edit.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'index/edit.tpl', 13, false),array('function', 'html_options', 'index/edit.tpl', 35, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "common/header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php if ($this->_tpl_vars['AppUI']->id <= 0): ?>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/login.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>  
<?php else: ?>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "common/menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    <div class="rightColumn">
    	<div class="boxContent">
        	<div class="contentItem">
                <div class="contentItems">
                	<div class="headerTitle"><h2><a href="<?php echo @HOST_BACKEND; ?>
index/list">Thành viên Ban Quản Trị</a> &raquo; Cập nhật</h2></div>
                    <div class="secData">
                    	<form name="frmEdit" id="frmEdit" method="post" enctype="multipart/form-data" action="<?php echo @HOST_BACKEND; ?>
index/save">
                        	<input type="hidden" name="pusername" id="pusername" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['objAdmin']->username)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"/>
                            <input type="hidden" name="padminid" id="padminid" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['objAdmin']->id)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"/>
                        	<div class="userInput">
                            	<label for="pusername">Username:</label>
                                <strong><?php echo ((is_array($_tmp=$this->_tpl_vars['objAdmin']->username)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</strong>
                            </div>
                            <div class="userInput">
                            	<label for="ppassword">Mật khẩu:</label>
                                <input type="password" class="text" name="ppassword" id="ppassword" value="" />
                            </div>
                            <div class="userInput">
                            	<label for="ppassword_confirm">Xác nhận mật khẩu:</label>
                                <input type="password" class="text" name="ppassword_confirm" id="ppassword_confirm" value="" />
                            </div>
                            <div class="userInput">
                            	<label for="pfullname">Họ &amp; tên:</label>
                                <input type="text" class="text" name="pfullname" id="pfullname" value="<?php if (isset ( $_SESSION['post']['pfullname'] )): ?><?php echo ((is_array($_tmp=$_SESSION['post']['pfullname'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php else: ?><?php echo ((is_array($_tmp=$this->_tpl_vars['objAdmin']->fullname)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php endif; ?>" />
                            </div>
                            <div class="userInput">
                            	<label for="pfullname">Loại thành viên quản trị:</label>
                                <select name="ptype" id="ptype">
                                	<?php if (isset ( $_SESSION['post']['ptype'] )): ?>
                                		<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrType'],'selected' => $_SESSION['post']['ptype']), $this);?>

                                    <?php else: ?>
                                    	<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrType'],'selected' => $this->_tpl_vars['objAdmin']->type), $this);?>

                                    <?php endif; ?>
                                </select>
                            </div>
                            <div class="secAction">
                        		<input type="submit" value="Lưu dữ liệu"/>
                               	<input type="reset" value="Nhập lại"/>
                            </div>
                        </form>
                   	</div>
                </div>
          	</div>
        </div>
    </div>
<?php endif; ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "common/footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
                